package com.lottery.dao.qiuqiu.lobbyDao;

import com.lottery.entity.LotteryExchange;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

/**
 * 彩票类型兑换表
 * 
 * @author Administrator
 *
 */
public interface LotteryExchangeDao {

	/**
	 * 查询所有中奖记录
	 * 
	 */
	List<LotteryExchange> selectLotteryExchange();

	/**
	 * 中奖记录
	 */
	void insertLotteryExchange(LotteryExchange lotteryExchange);

	/**
	 * 统计用户的中奖总金额
	 */
	Double winTotalAmount(@Param(value = "userId") int userId, @Param(value = "expect") String expect);

	/**
	 * 根据expect查询中奖信息
	 */
	List<LotteryExchange> selectLotteryExchangeList(@Param(value = "expect") String expect,
                                                    @Param(value = "lotteryType") int lotteryType);

	List<LotteryExchange> selectLotteryExchangeListForUser(Map<String,Object> params);
}
